import _import from "./_import";
import { RouteConfig } from "vue-router/types";
const Main = () => import("../layouts/Main.vue");
import archives from "./archives";


const updatePasswordRouter: RouteConfig = {
  path: "update_password",
  name: "update_password",
  component: _import("UpdatePassword"),
  meta: {
    title: "修改密码",
    touchBar: true
  }
};

/**
 * 首页路由
 */
const rootRouter: RouteConfig = {
  path: "/",
  name: "index",
  component: Main,
  redirect: "archives",
  children: [
    updatePasswordRouter,
    archives,
    { name: "404", path: "/404", component: _import("error/404.vue") },
    { name: "wyr", path: "/wyr", component: _import("TestWyr.vue") },
    { name: "leo", path: "/leo", component: _import("Leo.vue") }
  ]
};

const redirect404 = { path: "*", redirect: "/404" };

const routers: RouteConfig[] = [rootRouter, redirect404];

export default routers;
